#ifndef HPLC_QINFINE_SENDCOMMONPACKET_H
#define HPLC_QINFINE_SENDCOMMONPACKET_H

#include <QList>
#include "basesendpacket.h"

namespace hplc
{
namespace qinfine
{

class HplcQinfineProtocolCommonData;
class HplcQinfineSendCommonPacket : public BaseSendPacket
{
public:
    HplcQinfineSendCommonPacket(HplcQinfineProtocolCommonData &data, QObject *parent = nullptr);
    virtual ~HplcQinfineSendCommonPacket() override;

    // 通用命令
    void setDeviceAddress(quint8 address);
    void getDeviceAddress();
    void getSoftwareVersion();
    void getHardwareVersion();
    void getProductDate();
    void getSerialNumber();
    void getModel();//实际得到型号的字符串
    void getUsedTime();
    void setSyncTime(quint32 time);
    void getSyncTime();
    void getInput(quint8 inputNum);
    void setOutput(quint8 outputNum, quint8 level);
    void getOutput(quint8 outputNum);
    void setTick();
    void getSystemError();
};

} // qinfine
} // hplc

#endif // HPLC_QINFINE_SENDCOMMONPACKET_H
